package com.corpgovernment.organization.enumm;

public enum ERedisKeyType {
    LOGIN_TOKEN("登录token"),
    LOGIN_SEL_TOKEN("登录uid选择token"),
    LOGIN_CODE("登录短信验证码"),
    LOGIN_CODE_DAILY_LIMIT("登录短信验证码每日限制"),

    LOGIN_CODE_MINUTE_LIMIT("登录短信验证码每分钟限制"),
    REST_PWD_CODE_MINUTE_LIMIT("重置密码短信每分钟限制"),
    BIND_PHONE_CODE_MINUTE_LIMIT("绑定手机验证码每分钟限制"),
    UNBIND_PHONE_CODE_MINUTE_LIMIT("解绑手机验证码每分钟限制"),
    REST_PWD_CODE("重置密码短信验证码"),
    REST_PWD_SEL_TOKEN("重置密码选择token"),
    BIND_PHONE_CODE("绑定手机验证码"),
    LOGIN_MSG_TEMP("登录短信模板"),
    UNBIND_PHONE_CODE("解绑手机验证码"),
    UPLOAD_STAFF_PHONE_CODE("更新员工手机号验证码"),
    USER_REGISTER_CODE("注册短信验证码"),
    USER_ORG_REGISTER_TOKEN("用户身份注册token"),
    USER_REGISTER_VALID_TOKEN("用户注册校验token");

    private String desc;

    ERedisKeyType(String desc){
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public String getKey(String key){
        return this.name()+":"+key;
    }
}
